From 3a6e7aba700443f0610e03c6d0982cd78a1a3925 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 25 Feb 2003 19:04:45 +0000 Subject: [PATCH] Fix tests for polarity of coords on output. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@299 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/magproto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index 5bc44b054..ab038c2c8 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -1102,8 +1102,8 @@ mag_waypt_pr(const waypoint *waypointp) } sprintf(obuf, "PMGNWPL,%4.3f,%c,%09.3f,%c,%07.lf,M,%-.8s,%-.30s,%s", - lat, ilon < 0 ? 'N' : 'S', - lon, ilat < 0 ? 'E' : 'W', + lat, ilat < 0 ? 'S' : 'N', + lon, ilon < 0 ? 'W' : 'E', waypointp->position.altitude.altitude_meters == unknown_alt ? 0 : waypointp->position.altitude.altitude_meters, owpt, -- 2.30.2